package itheima.zuoye.test5;

public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.statup();
        computer.useDevice(new Mouse());
        computer.stopUsingDevice(new Mouse());
        computer.useDevice(new Keyboard());
        computer.stopUsingDevice(new Keyboard());
        computer.shutdown();
    }
}
